package com.yangff.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yangff.entity.admin.entity.Productmanagement;
import com.yangff.entity.product.entity.Financialproduct;
import com.yangff.entity.product.entity.dto.FinancialproductDTO;
import com.yangff.entity.product.entity.vo.ProductVo;
import com.yangff.entity.vo.ResultVo;
import com.yangff.entity.product.entity.dto.AutoStockDTO;
import org.springframework.data.domain.Pageable;
import org.springframework.data.web.PageableDefault;

import java.util.List;

/**
 * <p>
 * 存储管理员对理财产品的管理操作记录 服务类
 * </p>
 *
 * @author yangff
 * @since 2025-01-15
 */
public interface IProductmanagementService extends IService<Productmanagement> {
    ProductVo getProductByCode(String code);

    ProductVo saveProductByType(AutoStockDTO autoStockDTO);

    ResultVo ListFund(String code, Double initialPrice);

    Boolean DelistFund(String code);

    void deleteProductByCode(String code);

    Page<ProductVo> selectProduct(Pageable pageable);

    void saveProductlog(Productmanagement productmanagement);

    ProductVo saveProduct(FinancialproductDTO financialproductDTO);
}
